package com.meituan.controller;

import com.meituan.pojo.resp.BaseResp;
import com.meituan.service.ZhuYeService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName ZhuyeController
 * @Description TODO
 * @Author 南山北往
 * @Date 2022/9/27 15:20
 * @Version 1.0
 **/
@RestController
@RequestMapping("zhuye")
public class ZhuYeController {

    @Autowired
    ZhuYeService service;

    @PostMapping("findAll")
    @ApiOperation("执行时间:主展示页面加载完成后默认执行;无参数;")
    public BaseResp findAll(){
        return service.findAll();
    }
}
